package com.example.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author 袁小弘
 * @describe 培训中心学生管理————学期班级费用类
 * @date 2019-12-17 17:04
 */
@Entity
@Table(name = "term_class_price")
public class TermClassPrice implements Serializable {

    private static final long serialVersionUID = 3746509226906800207L;

    @Id
    @GeneratedValue
    @Column(name = "term_class_price_Id")
    private Integer termClassPriceId;//学期班级费用ID

    @Column(name = "class_Id")
    private Integer classId;//班级ID	

    @Column(name = "price", length = 10)
    private BigDecimal price;//价格

    @Column(name = "comment", length = 255)
    private String comment;//备注说明

    @Column(name = "recordTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp recordTime;//创建记录时间

    @Column(name = "updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;//更新记录时间


    public TermClassPrice() {

    }


    public Integer getTermClassPriceId() {
        return termClassPriceId;
    }


    public void setTermClassPriceId(Integer termClassPriceId) {
        this.termClassPriceId = termClassPriceId;
    }


    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "TermClassPrice [termClassPriceId=" + termClassPriceId + ", classId=" + classId + ", price=" + price + ", comment=" + comment
                + ", recordTime=" + recordTime + ", updateTime=" + updateTime + "]";
    }


}
